package com.clp.protocol.core.utils;

public class IntUtil {
    public static String formatNumberStr(int num, int width) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < width - (num + "").toCharArray().length; i++) {
            sb.append("0");
        }
        sb.append(num);
        return sb.toString();
    }
}
